<html>
    <head>
        <meta charset="utf8" />
    </head>
    <body></body>
    <a id="elem">点击我</a>
    <script type="text/javascript" src="jquery.js">
    </script>
    <script type="text/javascript">


    $ajax({
        url"phpinfo.php",method:"post",data:"a=1&b=2"

        
            });
     var responseText ='{"name":"yiy"}';
     var user = JSON.parse
     (responseText);
     console.log(responseText,user);
    </script>
</html>